package com.gqyin.demo.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * @author guiqing.yin
 * 2024-04-07 16:33
 */
public interface BaseRepository<T, ID> {

    List<T> findAll();

    T findById(ID id);

    Page<T> findByPage(PageRequest pageRequest);

    T save(T t);

    T deleteById(ID id);
}
